package com.atguigu.rule;

import com.netflix.loadbalancer.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author csc
 * @Date 2023/3/14 0014 9:56
 * @Version 1.0
 * ribbon 自定义软件负载均衡策略
 */
@Configuration
public class MySelfRule {

    //随机算法
    @Bean
    public IRule getRule(){
        return  new RandomRule();
    }



}
